package com.zkingsoft.laqeelin.service;

import java.util.List;

import com.matrix.core.pojo.PaginationVO;
import com.zkingsoft.laqeelin.bean.BizHelp;
import com.zkingsoft.laqeelin.bean.BizOrder;
import com.zkingsoft.laqeelin.bean.BizShare;
import com.zkingsoft.laqeelin.bean.BizUser;
import com.matrix.core.web.BaseServices;

/**
 * @description  service接口类 (助力表)
 * @author 何明
 * @date 2018-09-01 10:35
 */
public interface BizHelpService  extends BaseServices<BizHelp>{
	
	/**
	 * 新增
	 */
	public int add(BizHelp bizHelp);
   	
   	/**
	 * 批量新增
	 */
	public int batchAdd(List<BizHelp>  bizHelpList);
   	
   	/**
	 * 根据map键值对 更新
	 */
	public int modifyByMap(BizHelp oldBizHelp ,BizHelp newBizHelp);
	
	/**
	 * 根据对象 更新
	 */
	public int modifyByModel(BizHelp bizHelp);
	
	/**
	 * 批量删除
	 */
	public int remove(List<String> list);

	/**
	 * 根据id删除
	 */
	public int removeById(String helpId);
	
	/**
	 * 根据对象删除
	 */
	public int removeByModel(BizHelp bizHelp);
	
	/**
	 * 分页查询
	 */
	public List<BizHelp> findInPage(BizHelp bizHelp, PaginationVO pageVo);

	/**
	 * 根据对象查询
	 */
	public List<BizHelp> findByModel(BizHelp bizHelp);
	
	/**
	 * 统计记录数
	 */
	public int  findTotal(BizHelp bizHelp);
	
	/**
	 * 根据id查询
	 */
	public BizHelp  findById(String helpId);

   	
	/**
	 * 新增助力
	 */
	public int addHelp(BizHelp bizHelp,BizShare bizShare,String formId);
	
	/**
	 *接受分享礼品
	 */
	public BizOrder receiveSharePrize(BizUser loginUser,BizOrder order);
	
	/**
	 *接受助力礼品
	 */
	public BizOrder receiveHelpPrize(String shareId,BizUser loginUser,String formId);
	
}